<?php

class Home extends CI_Controller {
    public function __construct() {
        parent::__construct();
        $this->load->library(array(
            'session'
        ));
        $this->load->helper(array(
            'url'
        ));
    }
    
    public function index() {
        $session = $this->session->all_userdata();
        if(empty($session['SID'])) {
            redirect('/usuarios/login/', 'refresh');
        }
        
        
        $data['title'] = 'Home';
        $data['activo'] = '';
        $this->load->view('layout/header', $data);
        $this->load->view('layout/menu');
        $this->load->view('layout/footer');
    }
}
?>
